package com.dianxin.farm.request.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel("分页通用表单")
@Data
public class PageRequest {

    @ApiModelProperty("页码，不能小于0")
    @NotNull(message = "页码有误")
    @Min(value = 1,message = "页码有误")
    private Integer page;

    @ApiModelProperty("页码大小，不能小于0")
    @NotNull(message = "页码大小有误")
    @Min(value = 1,message = "页码大小有误")
    private Integer size;


}
